package com.main.ok.push;

import java.util.HashMap;
import java.util.Map;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.greenline.push.services.PushCenterCommonService;

public class WeiYiActivityTest {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");

        /**
         * dubbo服务获取
         */
        PushCenterCommonService pushService = (PushCenterCommonService) ctx.getBean("pushService");
        Map<String, String> params = new HashMap<String, String>();
        // title,externUrl,imgUrl,message,date
        params.put("title", "title");
        params.put("externUrl", "externUrl");
        params.put("imgUrl", "imgUrl");
        params.put("message", "message");
        params.put("date", "111111111");

        pushService.createBroadCast("upload", "weiyiActivityTemplate", "weiyiActivityDomain", params, null);
    }
}
